package com.bupt.ilink.mapper;

import com.bupt.ilink.entity.store.StoreFlowTag;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TeamFlowTagMapper {

    @Insert("INSERT INTO tb_team_flow_tag (team_flow_id, tag_id) VALUES (#{flowId}, #{tagId})")
    public void insertTeamFlowTag(String flowId, String tagId);

    @Delete("DELETE FROM tb_team_flow_tag WHERE team_flow_id = #{flowId} AND tag_id = #{tagId}")
    public void deleteTeamFlowTag(String flowId, String tagId);

    @Select("SELECT tag_id FROM tb_team_flow_tag WHERE team_flow_id = #{flowId}")
    List<String> getTagIdsByFlowId(String flowId);

}
